<?php

namespace catchAdmin\apidoctor\validate;

use think\Validate;

class PatientValidate extends Validate
{
    protected $rule = [
        'id' => 'require',
        'patient_id' => 'require',
        'patientId' => 'require',
    ];

    protected $message = [
        'id.require' => '缺少id参数',
        'patient_id.require' => '缺少patient_id参数',
        'patientId.require' => '缺少patientId参数',
    ];

    protected $scene = [
        'get_patient_jkda' => ['patient_id'],
        'get_patient_ynyl' => ['id'],
        'get_patient_family' => ['patientId'],
        'get_hzd_patient_top' => ['patientId']
    ];  
}